package com.itheima.reggie.service;

import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.Employee;
import com.itheima.reggie.entity.Page;

public interface EmployeeService {
    /**
     *
     * @param employee
     * @return
     */
    R<Employee> login(Employee employee);


    void  save(Employee employee);

    Page<Employee> findByPage(Integer page,Integer pageSize,String name);

    /**
     * 修改用户的方法
     * @param employee
     */
    void update(Employee employee);

    /**
     * 根据id查询员工对象
     * @param id
     * @return
     */
    Employee findById(long id);
}
